import { $fetchList } from "@/utils/api";

// 获取订单列表
export const listGoods = (params) => {
  return $fetchList(`/mes/goods/list`, {
    method: "GET",
    query: {
      ...params,
    },
  });
};

// 新增商品
export const addGoods = (params) => {
  return $api(`/mes/goods`, {
    method: "POST",
    body: params,
  });
};

// 获取商品分组列表
export const listGoodsGroup = (params) => {
  return $api(`/mes/goods/group/list`, {
    method: "GET",
    query: {
      ...params,
    },
  });
};